/****************************************************
 * 													*
 * 					BanzaiP2P						*
 * 													*
 * Versione: 0.1.1									*
 * Autore: D'Annessa Marco							*
 * File: banzai.c									*
 ****************************************************/


#include "banzai.h"


int main(int argc, char *argv[])
{

	logo_console();
	
	conf = config_loader("config.txt");
	
	printf("n:%s\n", conf->nick);
	printf("bn:%d\n", conf->bootpeernumber);
	
		
	
	//star servent thread
	pthread_create(&tservent,NULL, serv_start,NULL);
	pthread_create(&tclient,NULL, client_start,NULL);
	pthread_join(tservent,NULL);
	pthread_join(tclient,NULL);
	
	
	
	//bootstrap
	

	

	
	
	
	
	
	
	
return EXIT_SUCCESS;

};

